| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | /* eslint-env browser, jquery, webextensions */ |
||
| 7 | function createTaskForTicket(ticket) { |
||
| 8 | var message = { |
||
| 9 | method: "createTask", |
||
| 10 | params: { |
||
| 11 | name: "[" + ticket.key + '] ' + ticket.summary, |
||
| 12 | note: window.location.href + "\n\n" + ticket.description |
||
| 13 | } |
||
| 14 | }; |
||
| 15 | |||
| 16 | chrome.runtime.sendMessage(message, function (data) { |
||
|
|
|||
| 17 | $('<iframe style="display:none">') |
||
| 18 | .attr('src', data.url) |
||
| 19 | .appendTo('body'); |
||
| 20 | }); |
||
| 21 | } |
||
| 22 | |||
| 35 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.